home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / video / xonix-1.0 / xonix-1 / xonix / xgif.h < prev    next >
C/C++ Source or Header  |  1995-07-31  |  939b  |  48 lines

  1. /*
  2.  *  xgif.h  -  header file for xgif, but you probably already knew as much
  3.  */
  4.  
  5.  
  6. #define REVDATE   "Rev: 2/13/89"
  7. #define MAXEXPAND 16
  8.  
  9. /* include files */
  10. #include <stdio.h>
  11. #include <math.h>
  12. #include <ctype.h>
  13.  
  14. #include <X11/Xos.h>
  15. #include <X11/Xlib.h>
  16. #include <X11/Xutil.h>
  17.  
  18.  
  19. #ifndef MAIN
  20. #define WHERE extern
  21. #else
  22. #define WHERE
  23. #endif
  24.  
  25. #define byte unsigned char
  26.  
  27. #define CENTERX(f,x,str) ((x)-XTextWidth(f,str,strlen(str))/2)
  28. #define CENTERY(f,y) ((y)-((f->ascent+f->descent)/2)+f->ascent)
  29.  
  30.  
  31. /* X stuff */
  32. WHERE Display *theDisp;
  33. WHERE int theScreen, dispcells;
  34. WHERE Colormap theCmap;
  35. WHERE Window rootW, mainW;
  36. WHERE GC theGC;
  37. WHERE unsigned long fcol, bcol;
  38. WHERE Font mfont;
  39. WHERE XFontStruct *mfinfo;
  40. WHERE Visual *theVisual;
  41. WHERE XImage *theImage, *expImage;
  42.  
  43. /* global vars */
  44. WHERE int iWIDE, iHIGH, eWIDE, eHIGH, expand, numcols, strip, nostrip;
  45. WHERE unsigned long cols[256];
  46. WHERE XColor defs[256];
  47. WHERE char *cmd;
  48.